<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>
<div id="submenu"><?php echo tag('phpcms', 'tag_category_submenu', "", 0, 0, array (  'module' => 'phpcms',  'catid' => $catid,  'class' => 'url',  'target' => '_blank',));?></div>
<!--begin main-->
<div id="main">
  <!--begin left-->
  <div id="main_l">
    <!--begin 焦点图片,信息-->
    <div class="cribox_top"></div>
    <div class="cribox_bdr">
      <!--幻灯片-->
      <div id="slide"><?php echo tag('phpcms', 'tag_content_slide', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `zzinfo_content` WHERE  status=99   AND  `thumb`!='' ".get_sql_catid($catid)." ORDER BY contentid DESC", 0, 5, array (  'class' => 'url',  'target' => '_blank',  'width' => '300',  'height' => '185',));?></div>
      <!--热点文章-->
      <div class="f_r w_310">
        <ul class="text_list">
<?php echo tag('phpcms', 'tag_content', "SELECT a.contentid,a.catid,a.typeid,a.areaid,a.title,a.style,a.thumb,a.keywords,a.description,a.userid,a.updatetime,a.inputtime,a.posids,a.url,a.listorder FROM `zzinfo_content` a, `zzinfo_content_position` p WHERE a.contentid=p.contentid AND p.posid=4 AND a.status=99  ".get_sql_catid($catid)." ORDER BY a.contentid DESC", 0, 8, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '36',  'showdate' => '0',  'showcatname' => '1',));?>
        </ul>
      </div>
    </div>
    <div class="cribox_btm"></div>
    <div class="ad mar_10" id="topbanner"><script language="javascript" src="data/js.php?id=1"></script></div>
<?php if(is_array($arrchildid)) foreach($arrchildid AS $cid => $c) { ?>
    <div class="cat_info">
      <div class="cat_title"><a href="<?php echo $c['url'];?>"><img src="images/more.gif" alt="更多" /></a>
        <h3><?php echo $c['catname'];?></h3>
      </div>
      <ul class="text_list">
        <?php echo tag('phpcms', 'tag_content', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url,listorder FROM `zzinfo_content` WHERE  status=99  ".get_sql_catid($cid)." ORDER BY contentid DESC", 0, 10, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '37',  'showdate' => '1',));?>
      </ul>
    </div>
<?php } ?>
  </div>
  <!--end left-->
  <!--begin right-->
  <div id="main_r">
    <div style="text-align:center;"><a href="contribute.php?catid=<?php echo $catid;?>"><img src="images/btn_free.jpg" alt="免费发布信息" /></a></div>
<h4>信息分类</h4>
    <div id="info_nav">
<?php if(is_array($catlist)) foreach($catlist AS $c) { ?>
      <dl>
        <?php if($c[parentid]==$catid) { ?><dt><a href="<?php echo $c['url'];?>"><?php echo $c['catname'];?></a></dt>
<?php $cols=1;?>
<dd><?php if(is_array($catlist)) foreach($catlist AS $cat) { ?>
<?php $cols=1;?>
<?php if($cat[parentid]==$c[catid]) { ?><a href="<?php echo $c['url'];?>"><?php echo $cat['catname'];?></a><?php } ?>
<?php $cols++;?>
<?php } ?><a href="<?php echo $c['url'];?>">>></a></dd>
<?php } ?>
      </dl>
<?php } ?>
    </div>
    <h4>按地区浏览</h4>
    <div id="area">
<?php if(is_array($AREA)) foreach($AREA AS $a) { ?>
<?php if($a[parentid]==1) break;?>
<a href="area.php?areaid=<?php echo $a['areaid'];?>&catid=<?php echo $catid;?>"><?php echo $a['name'];?></a><?php } ?>
</div>
  </div>
  <!--end right-->
</div>
<!--end main-->
<?php include template('phpcms','footer'); ?>